<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/common.jsp" %>
<%@ page import="com.chanyachting.emall.util.RequestUtil" %>
<%@ page import="com.chanyachting.emall.service.*" %>
<%@ page import="com.chanyachting.emall.serviceImpl.*" %>
<%@ page import="com.chanyachting.emall.domain.*" %>
<%@ page import="java.util.*" %>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK" %>


<%

	RequestUtil ru=new RequestUtil(request);

	int channelId=Integer.parseInt(ru.getParameter("channelId","0"));
	
	ChannelService cs=new ChannelServiceImpl();
	
	List list=new ArrayList();
	
	if(channelId!=0){
		
		list=cs.getPublishSubChannel(new Channel(channelId));	
		
	}

%>


	   <label>
        <select name="subChannelId" id="select2">
        	<option value="0">请选择</option>
         <%
        	if(list==null) list=new ArrayList();
        	
        	Channel channel=null;
        	
        	for(int i=0;i<list.size();i++){
        		
        		channel=(Channel)list.get(i);
        %>
        <option value="<%=channel.getId() %>"><%=channel.getName() %></option>
        <%
        		
        	}
        
        %>
        </select>
      </label>